<div class="startTime">
<?php 
foreach($dropoffs as $drop) {
 echo '<table>';
 
 echo '<tr><th>Time</th>';
 for ($i = 0; $i < $drop['teams']; $i++) {
   echo '<th>Team ' . ($i + 1) . '</th>';
 }
 echo '</tr>' . "\n";
 
 $t = $drop['start_time'];
 while ($t != $drop['end_time']) {
   echo  '<tr><td>' . dateTools::formTime($t) . '</td>';
    
   for ($i = 0; $i < $drop['teams']; $i++) {
     if ($data[0]['start_time'] == $t && $data[0]['team'] == ($i+1)) {
       echo '<td>' . $data[0]['producer_id'] . '</td>';
       array_shift($data);
     } else {
       echo '<td>(empty)</td>';
     }
     //print_pre($data);
   }
   echo '</tr>' . "\n";
   $t = dateTools::timeAdd($t,DROPOFF_SLOT_SIZE);
 }
 
 echo '</table>';
  
}
?>
</div>
